package pointImpl;

//start extract PointImpl2
public class PointImpl2 implements Point {
    
    private float x, y;
    
    public PointImpl2( float x, float y ) { this.x = x; this.y = y; }
    public float getX() { return x; }
    public float getY() { return y; }
    
    public boolean equals( Object obj ) {
	if ( obj instanceof Point) {
	    Point p = (Point)obj;
	    return p.getX() == x && p.getY() == y;
	}
	else
	    return false;
    }
}
//stop extract PointImpl2

